package com.spark.market.dal.entity;

import java.io.Serializable;

public class OrderLogDo implements Serializable {
    private Integer id;

    /**
     * 商品的id
     * @author zwd
     * @create 2021-07-01
     */
    private Integer itemId;

    /**
     * 订单的id
     * @author zwd
     * @create 2021-07-01
     */
    private String orderId;

    /**
     * 下单商品的数量
     * @author zwd
     * @create 2021-07-01
     */
    private Integer count;

    /**
     * 用户id
     * @author zwd
     * @create 2021-07-01
     */
    private Integer userId;

    /**
     * 额外的信息
     * @author zwd
     * @create 2021-07-01
     */
    private String extra;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", itemId=").append(itemId);
        sb.append(", orderId=").append(orderId);
        sb.append(", count=").append(count);
        sb.append(", userId=").append(userId);
        sb.append(", extra=").append(extra);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}